package org.jackysoft.google.collection;

import org.jackysoft.entity.Department;

public class DepartmentZtreeFunction extends
		AbstractZTreeFunction<Department, ZTreeNode> {

	@Override
	public ZTreeNode apply(Department from) {
		ZTreeNode zn = new ZTreeNode();
		zn.setId(from.getId()+"");
		zn.setName(from.getName());
		zn.setIsParent("true");		
		zn.setChecked(false);
		zn.setNocheck(true);
		zn.setSort(from.getSort());	
		zn.setZtype("department");
		return zn;
	}

}
